package com.pcbly.web.bean.table;

import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;

public class TableBean extends AbstractBaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 125566962736000480L;
	
	private String tableName;
	private String tableCName; 
	private String iflag;
	private String tableNameExtention;  
	
	public String getTableNameExtention() {
		return tableNameExtention;
	}

	public void setTableNameExtention(String tableNameExtention) {
		this.tableNameExtention = tableNameExtention;
	}

	public String getIflag() {
		return iflag;
	}

	public void setIflag(String iflag) {
		this.iflag = iflag;
	}

	private Set<ColumnBean> columnBeans=new HashSet<ColumnBean>(0);
	
	public Set<ColumnBean> getColumnBeans() {
		return columnBeans;
	}

	public void setColumnBeans(Set<ColumnBean> columnBeans) {
		this.columnBeans = columnBeans;
	} 

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableCName() {
		return tableCName;
	}

	public void setTableCName(String tableCName) {
		this.tableCName = tableCName;
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
}
